<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>登录成功页面</title>
	<%-- 静态包含 base标签、css样式、jQuery文件 --%>
	<%@ include file="/pages/common/head.jsp"%>

	<style type="text/css">
		.tanchuang{
			position: fixed;
			top: 50%;
			left: 50%;
			width:400px;
			height: 300px;
			margin-left: -200px;
			margin-top: -150px;
			line-height: 100px;
			background-color: #989898;
			text-align: center;
			border-radius: 5px;
		}
		.p1{
			margin-top: 40px;
			font-size: 26px;
			color: white;
		}
		.p2{
			position: relative;
			margin-top: -40px;
			font-size: 26px;
			color: white;
		}
		.btn1{
			position: relative;
			top: -30px;
			border: 0;
			border-radius: 5px;
			width: 57px;
			height: 37px;
			background-color: #0093c9;
			font-size: large;
		}
		a{
			cursor: pointer;
			text-decoration: none;
		}
	</style>
</head>
<body>
<div id="header0">
	<img alt="loading" src="static/img/beauty.jpg" width="120px" height="100px"  align="middle" style="margin-top: -12px;cursor: pointer;border-radius: 5px">&nbsp;&nbsp;
	<a href="pages/user/first_page.jsp">首页</a>&nbsp;
	<a href="#">热销</a>&nbsp;
	<a style="color: white"  href="pages/user/regist.jsp">注册</a>&nbsp;
	<a href="pages/user/login.jsp">登录</a>&nbsp;
	<%--如果已经登录，则显示登录成功之后的用户信息。--%>
	<!--
	<c:if test="${not empty sessionScope.user}">
		<a href="userServlet?action=logout">注销</a>&nbsp;&nbsp;
		<a href="orderServlet?action=list">我的订单</a>&nbsp;
		<a href="manager/bookServlet?action=list">游戏管理</a>&nbsp;
		<a href="pages/manager/manager.jsp">后台管理</a>
	</c:if>
	-->
	<a href="pages/cart/cart.jsp">购物车</a>&nbsp;
</div>


<div id="content">

	<div class="tishiyu">
						<span class="errorMsg">
							${ requestScope.msg }
						</span>
	</div>

	<div class="login_form">
		<h1 style="color: white;margin-left: 18px;font-weight: normal">创建您的账户</h1>
		<div class="login_box">
			<div class="form">
				<form action="userServlet" method="post">
					<input type="hidden" name="action" value="regist">
					<label>账户名称：</label><br><label for="username"></label>
					<input class="itxt" type="text" value="${requestScope.username}"
						   name="username" id="username"/>
					<br/>
					<br/>
					<label>选择密码：</label><br><label for="password"></label>
					<input class="itxt" type="password"
						   name="password" id="password" />
					<br/>
					<br/>
					<label>确认密码：</label><br>	<label for="repwd"></label>
					<input class="itxt" type="password"
						   name="repwd" id="repwd" />
					<br/>
					<br/>
					<label>电子邮件：</label><br><label for="email"></label>
					<input class="itxt" type="text"  value="${requestScope.email}"
						   name="email" id="email" />
					<br/>
					<br/>
					<label>验证码：</label><br><label for="code"></label>
					<input type="text" name="code" style="width: 100px;height:27px;background-color: #bdbdbd" id="code" autocomplete="off"/>
					<img id="code_img" alt="loading" src="kaptcha.jpg" style="position:relative;top:10px;margin-left: 45px; width: 110px; height: 32px;">
					<br/>
					<br/>
					<input type="submit" value="&nbsp;完&nbsp;成&nbsp;" class="button" />
				</form>
			</div>

		</div>


	</div>
</div>


<div class="tanchuang">
	<p class="p1">账号${sessionScope.user.username}注册成功!<br></p>
	<p class="p2">是否登录?</p>
	<button class="btn1"><a href="pages/user/login.jsp">是</a></button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	<button class="btn1"><a href="pages/user/login.jsp">否</a></button>
</div>
</body>
</html>